﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using FineUI;


namespace FineUI.Examples
{
    public partial class table_course : System.Web.UI.Page
    {
        protected DataSet LoadCourseInform()
        {
            Maticsoft.BLL.Course currentCourse = new Maticsoft.BLL.Course();
            DataSet DSCourse = currentCourse.GetAllList();
            DataView view1 = DSCourse.Tables[0].DefaultView;
            GridCourse.DataSource = view1;
            GridCourse.DataBind();
            return DSCourse;


        }
        protected void Page_Load(object sender, EventArgs e)
        {
            LoadCourseInform();
        }

        protected void GridCourse_PageIndexChange(object sender, GridPageEventArgs e)
        {
            GridCourse.PageIndex = e.NewPageIndex;
            LoadCourseInform();
        }
    }
}